package zhizhemodi.tech.short_term_bwork.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import zhizhemodi.tech.short_term_bwork.entity.PlanToDevice;

@Repository
public interface PlanToDeviceMapper extends BaseMapper<PlanToDevice> {
    
    @Select("SELECT device_id FROM planToDevice WHERE plan_id = #{planId};")
    public List<Integer> selectDeviceIds(Integer planId);

}
